package com.test.mysqlseq.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TSysSeqExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TSysSeqExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("Id_ is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("Id_ is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("Id_ =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("Id_ <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("Id_ >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("Id_ >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("Id_ <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("Id_ <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("Id_ in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("Id_ not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("Id_ between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("Id_ not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andSequtypeIsNull() {
            addCriterion("SequType_ is null");
            return (Criteria) this;
        }

        public Criteria andSequtypeIsNotNull() {
            addCriterion("SequType_ is not null");
            return (Criteria) this;
        }

        public Criteria andSequtypeEqualTo(Integer value) {
            addCriterion("SequType_ =", value, "sequtype");
            return (Criteria) this;
        }

        public Criteria andSequtypeNotEqualTo(Integer value) {
            addCriterion("SequType_ <>", value, "sequtype");
            return (Criteria) this;
        }

        public Criteria andSequtypeGreaterThan(Integer value) {
            addCriterion("SequType_ >", value, "sequtype");
            return (Criteria) this;
        }

        public Criteria andSequtypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("SequType_ >=", value, "sequtype");
            return (Criteria) this;
        }

        public Criteria andSequtypeLessThan(Integer value) {
            addCriterion("SequType_ <", value, "sequtype");
            return (Criteria) this;
        }

        public Criteria andSequtypeLessThanOrEqualTo(Integer value) {
            addCriterion("SequType_ <=", value, "sequtype");
            return (Criteria) this;
        }

        public Criteria andSequtypeIn(List<Integer> values) {
            addCriterion("SequType_ in", values, "sequtype");
            return (Criteria) this;
        }

        public Criteria andSequtypeNotIn(List<Integer> values) {
            addCriterion("SequType_ not in", values, "sequtype");
            return (Criteria) this;
        }

        public Criteria andSequtypeBetween(Integer value1, Integer value2) {
            addCriterion("SequType_ between", value1, value2, "sequtype");
            return (Criteria) this;
        }

        public Criteria andSequtypeNotBetween(Integer value1, Integer value2) {
            addCriterion("SequType_ not between", value1, value2, "sequtype");
            return (Criteria) this;
        }

        public Criteria andBizidIsNull() {
            addCriterion("BizId_ is null");
            return (Criteria) this;
        }

        public Criteria andBizidIsNotNull() {
            addCriterion("BizId_ is not null");
            return (Criteria) this;
        }

        public Criteria andBizidEqualTo(Long value) {
            addCriterion("BizId_ =", value, "bizid");
            return (Criteria) this;
        }

        public Criteria andBizidNotEqualTo(Long value) {
            addCriterion("BizId_ <>", value, "bizid");
            return (Criteria) this;
        }

        public Criteria andBizidGreaterThan(Long value) {
            addCriterion("BizId_ >", value, "bizid");
            return (Criteria) this;
        }

        public Criteria andBizidGreaterThanOrEqualTo(Long value) {
            addCriterion("BizId_ >=", value, "bizid");
            return (Criteria) this;
        }

        public Criteria andBizidLessThan(Long value) {
            addCriterion("BizId_ <", value, "bizid");
            return (Criteria) this;
        }

        public Criteria andBizidLessThanOrEqualTo(Long value) {
            addCriterion("BizId_ <=", value, "bizid");
            return (Criteria) this;
        }

        public Criteria andBizidIn(List<Long> values) {
            addCriterion("BizId_ in", values, "bizid");
            return (Criteria) this;
        }

        public Criteria andBizidNotIn(List<Long> values) {
            addCriterion("BizId_ not in", values, "bizid");
            return (Criteria) this;
        }

        public Criteria andBizidBetween(Long value1, Long value2) {
            addCriterion("BizId_ between", value1, value2, "bizid");
            return (Criteria) this;
        }

        public Criteria andBizidNotBetween(Long value1, Long value2) {
            addCriterion("BizId_ not between", value1, value2, "bizid");
            return (Criteria) this;
        }

        public Criteria andSequkeyIsNull() {
            addCriterion("SequKey_ is null");
            return (Criteria) this;
        }

        public Criteria andSequkeyIsNotNull() {
            addCriterion("SequKey_ is not null");
            return (Criteria) this;
        }

        public Criteria andSequkeyEqualTo(String value) {
            addCriterion("SequKey_ =", value, "sequkey");
            return (Criteria) this;
        }

        public Criteria andSequkeyNotEqualTo(String value) {
            addCriterion("SequKey_ <>", value, "sequkey");
            return (Criteria) this;
        }

        public Criteria andSequkeyGreaterThan(String value) {
            addCriterion("SequKey_ >", value, "sequkey");
            return (Criteria) this;
        }

        public Criteria andSequkeyGreaterThanOrEqualTo(String value) {
            addCriterion("SequKey_ >=", value, "sequkey");
            return (Criteria) this;
        }

        public Criteria andSequkeyLessThan(String value) {
            addCriterion("SequKey_ <", value, "sequkey");
            return (Criteria) this;
        }

        public Criteria andSequkeyLessThanOrEqualTo(String value) {
            addCriterion("SequKey_ <=", value, "sequkey");
            return (Criteria) this;
        }

        public Criteria andSequkeyLike(String value) {
            addCriterion("SequKey_ like", value, "sequkey");
            return (Criteria) this;
        }

        public Criteria andSequkeyNotLike(String value) {
            addCriterion("SequKey_ not like", value, "sequkey");
            return (Criteria) this;
        }

        public Criteria andSequkeyIn(List<String> values) {
            addCriterion("SequKey_ in", values, "sequkey");
            return (Criteria) this;
        }

        public Criteria andSequkeyNotIn(List<String> values) {
            addCriterion("SequKey_ not in", values, "sequkey");
            return (Criteria) this;
        }

        public Criteria andSequkeyBetween(String value1, String value2) {
            addCriterion("SequKey_ between", value1, value2, "sequkey");
            return (Criteria) this;
        }

        public Criteria andSequkeyNotBetween(String value1, String value2) {
            addCriterion("SequKey_ not between", value1, value2, "sequkey");
            return (Criteria) this;
        }

        public Criteria andStepIsNull() {
            addCriterion("Step_ is null");
            return (Criteria) this;
        }

        public Criteria andStepIsNotNull() {
            addCriterion("Step_ is not null");
            return (Criteria) this;
        }

        public Criteria andStepEqualTo(Integer value) {
            addCriterion("Step_ =", value, "step");
            return (Criteria) this;
        }

        public Criteria andStepNotEqualTo(Integer value) {
            addCriterion("Step_ <>", value, "step");
            return (Criteria) this;
        }

        public Criteria andStepGreaterThan(Integer value) {
            addCriterion("Step_ >", value, "step");
            return (Criteria) this;
        }

        public Criteria andStepGreaterThanOrEqualTo(Integer value) {
            addCriterion("Step_ >=", value, "step");
            return (Criteria) this;
        }

        public Criteria andStepLessThan(Integer value) {
            addCriterion("Step_ <", value, "step");
            return (Criteria) this;
        }

        public Criteria andStepLessThanOrEqualTo(Integer value) {
            addCriterion("Step_ <=", value, "step");
            return (Criteria) this;
        }

        public Criteria andStepIn(List<Integer> values) {
            addCriterion("Step_ in", values, "step");
            return (Criteria) this;
        }

        public Criteria andStepNotIn(List<Integer> values) {
            addCriterion("Step_ not in", values, "step");
            return (Criteria) this;
        }

        public Criteria andStepBetween(Integer value1, Integer value2) {
            addCriterion("Step_ between", value1, value2, "step");
            return (Criteria) this;
        }

        public Criteria andStepNotBetween(Integer value1, Integer value2) {
            addCriterion("Step_ not between", value1, value2, "step");
            return (Criteria) this;
        }

        public Criteria andSequvalueIsNull() {
            addCriterion("SequValue_ is null");
            return (Criteria) this;
        }

        public Criteria andSequvalueIsNotNull() {
            addCriterion("SequValue_ is not null");
            return (Criteria) this;
        }

        public Criteria andSequvalueEqualTo(Long value) {
            addCriterion("SequValue_ =", value, "sequvalue");
            return (Criteria) this;
        }

        public Criteria andSequvalueNotEqualTo(Long value) {
            addCriterion("SequValue_ <>", value, "sequvalue");
            return (Criteria) this;
        }

        public Criteria andSequvalueGreaterThan(Long value) {
            addCriterion("SequValue_ >", value, "sequvalue");
            return (Criteria) this;
        }

        public Criteria andSequvalueGreaterThanOrEqualTo(Long value) {
            addCriterion("SequValue_ >=", value, "sequvalue");
            return (Criteria) this;
        }

        public Criteria andSequvalueLessThan(Long value) {
            addCriterion("SequValue_ <", value, "sequvalue");
            return (Criteria) this;
        }

        public Criteria andSequvalueLessThanOrEqualTo(Long value) {
            addCriterion("SequValue_ <=", value, "sequvalue");
            return (Criteria) this;
        }

        public Criteria andSequvalueIn(List<Long> values) {
            addCriterion("SequValue_ in", values, "sequvalue");
            return (Criteria) this;
        }

        public Criteria andSequvalueNotIn(List<Long> values) {
            addCriterion("SequValue_ not in", values, "sequvalue");
            return (Criteria) this;
        }

        public Criteria andSequvalueBetween(Long value1, Long value2) {
            addCriterion("SequValue_ between", value1, value2, "sequvalue");
            return (Criteria) this;
        }

        public Criteria andSequvalueNotBetween(Long value1, Long value2) {
            addCriterion("SequValue_ not between", value1, value2, "sequvalue");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNull() {
            addCriterion("UpdateTime_ is null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIsNotNull() {
            addCriterion("UpdateTime_ is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeEqualTo(Date value) {
            addCriterion("UpdateTime_ =", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotEqualTo(Date value) {
            addCriterion("UpdateTime_ <>", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThan(Date value) {
            addCriterion("UpdateTime_ >", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("UpdateTime_ >=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThan(Date value) {
            addCriterion("UpdateTime_ <", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeLessThanOrEqualTo(Date value) {
            addCriterion("UpdateTime_ <=", value, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeIn(List<Date> values) {
            addCriterion("UpdateTime_ in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotIn(List<Date> values) {
            addCriterion("UpdateTime_ not in", values, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeBetween(Date value1, Date value2) {
            addCriterion("UpdateTime_ between", value1, value2, "updatetime");
            return (Criteria) this;
        }

        public Criteria andUpdatetimeNotBetween(Date value1, Date value2) {
            addCriterion("UpdateTime_ not between", value1, value2, "updatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}